package com.wl.mvi

import android.os.Bundle
import android.os.Handler
import android.os.Looper
import com.alibaba.android.arouter.launcher.ARouter
import com.wl.lib.arouter.ARouterConstant
import com.wl.lib.mvi.BaseBindingActivity
import com.wl.mvi.databinding.ActivitySplashBinding

/**
 *
 * Created by wangliang on 2024/11/25
 */
class SplashActivity: BaseBindingActivity<ActivitySplashBinding>() {
    private val handler by lazy { Handler(Looper.getMainLooper()) }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        handler.postDelayed({
            ARouter.getInstance().build(ARouterConstant.App.MAIN).navigation()
            finish()
        }, 500)
    }
}